package core;

/**
 * A token is the least piece of code in FORD Language. It can be an identifier,
 * an operand or a delimiter.
 * 
 * @author ford
 */
public class Token {

	/**
	 * A sequence of characters which represents a piece of code in FORD
	 */
	private final String token;
	
	/**
	 * Constructs a Token using the given sequence of characters.
	 * @param token - the sequence of characters 
	 */
	public Token( String token ) {
		this.token = token;
	}

	/**
	 * Returns a token 
	 * @return a token - the sequence of characters 
	 */
	public final String getToken() {
		return token;
	}

	@Override
	public String toString() {
		return token;
	}
	
}
